{"ast":null,"code":"import { genComponentStyleHook, mergeToken } from '../../theme/internal';\n// ============================== Styles ==============================\nconst genBaseStyle = token => {\n  const {\n    componentCls,\n    lineHeightHeading3,\n    iconCls,\n    padding,\n    paddingXL,\n    paddingXS,\n    paddingLG,\n    marginXS,\n    lineHeight\n  } = token;\n  return {\n    // Result\n    [componentCls]: {\n      padding: `${paddingLG * 2}px ${paddingXL}px`,\n      // RTL\n      '&-rtl': {\n        direction: 'rtl'\n      }\n    },\n    // Exception Status image\n    [`${componentCls} ${componentCls}-image`]: {\n      width: token.imageWidth,\n      height: token.imageHeight,\n      margin: 'auto'\n    },\n    [`${componentCls} ${componentCls}-icon`]: {\n      marginBottom: paddingLG,\n      textAlign: 'center',\n      [`& > ${iconCls}`]: {\n        fontSize: token.resultIconFontSize\n      }\n    },\n    [`${componentCls} ${componentCls}-title`]: {\n      color: token.colorTextHeading,\n      fontSize: token.resultTitleFontSize,\n      lineHeight: lineHeightHeading3,\n      marginBlock: marginXS,\n      textAlign: 'center'\n    },\n    [`${componentCls} ${componentCls}-subtitle`]: {\n      color: token.colorTextDescription,\n      fontSize: token.resultSubtitleFontSize,\n      lineHeight,\n      textAlign: 'center'\n    },\n    [`${componentCls} ${componentCls}-content`]: {\n      marginTop: paddingLG,\n      padding: `${paddingLG}px ${padding * 2.5}px`,\n      backgroundColor: token.colorFillAlter\n    },\n    [`${componentCls} ${componentCls}-extra`]: {\n      margin: token.resultExtraMargin,\n      textAlign: 'center',\n      '& > *': {\n        marginInlineEnd: paddingXS,\n        '&:last-child': {\n          marginInlineEnd: 0\n        }\n      }\n    }\n  };\n};\nconst genStatusIconStyle = token => {\n  const {\n    componentCls,\n    iconCls\n  } = token;\n  return {\n    [`${componentCls}-success ${componentCls}-icon > ${iconCls}`]: {\n      color: token.resultSuccessIconColor\n    },\n    [`${componentCls}-error ${componentCls}-icon > ${iconCls}`]: {\n      color: token.resultErrorIconColor\n    },\n    [`${componentCls}-info ${componentCls}-icon > ${iconCls}`]: {\n      color: token.resultInfoIconColor\n    },\n    [`${componentCls}-warning ${componentCls}-icon > ${iconCls}`]: {\n      color: token.resultWarningIconColor\n    }\n  };\n};\nconst genResultStyle = token => [genBaseStyle(token), genStatusIconStyle(token)];\n// ============================== Export ==============================\nconst getStyle = token => genResultStyle(token);\nexport default genComponentStyleHook('Result', token => {\n  const {\n    paddingLG,\n    fontSizeHeading3\n  } = token;\n  const resultSubtitleFontSize = token.fontSize;\n  const resultExtraMargin = `${paddingLG}px 0 0 0`;\n  const resultInfoIconColor = token.colorInfo;\n  const resultErrorIconColor = token.colorError;\n  const resultSuccessIconColor = token.colorSuccess;\n  const resultWarningIconColor = token.colorWarning;\n  const resultToken = mergeToken(token, {\n    resultTitleFontSize: fontSizeHeading3,\n    resultSubtitleFontSize,\n    resultIconFontSize: fontSizeHeading3 * 3,\n    resultExtraMargin,\n    resultInfoIconColor,\n    resultErrorIconColor,\n    resultSuccessIconColor,\n    resultWarningIconColor\n  });\n  return [getStyle(resultToken)];\n}, {\n  imageWidth: 250,\n  imageHeight: 295\n});","map":{"version":3,"names":["genComponentStyleHook","mergeToken","genBaseStyle","token","componentCls","lineHeightHeading3","iconCls","padding","paddingXL","paddingXS","paddingLG","marginXS","lineHeight","direction","width","imageWidth","height","imageHeight","margin","marginBottom","textAlign","fontSize","resultIconFontSize","color","colorTextHeading","resultTitleFontSize","marginBlock","colorTextDescription","resultSubtitleFontSize","marginTop","backgroundColor","colorFillAlter","resultExtraMargin","marginInlineEnd","genStatusIconStyle","resultSuccessIconColor","resultErrorIconColor","resultInfoIconColor","resultWarningIconColor","genResultStyle","getStyle","fontSizeHeading3","colorInfo","colorError","colorSuccess","colorWarning","resultToken"],"sources":["/data/messenger.client/node_modules/antd/es/result/style/index.js"],"sourcesContent":["import { genComponentStyleHook, mergeToken } from '../../theme/internal';\n// ============================== Styles ==============================\nconst genBaseStyle = token => {\n  const {\n    componentCls,\n    lineHeightHeading3,\n    iconCls,\n    padding,\n    paddingXL,\n    paddingXS,\n    paddingLG,\n    marginXS,\n    lineHeight\n  } = token;\n  return {\n    // Result\n    [componentCls]: {\n      padding: `${paddingLG * 2}px ${paddingXL}px`,\n      // RTL\n      '&-rtl': {\n        direction: 'rtl'\n      }\n    },\n    // Exception Status image\n    [`${componentCls} ${componentCls}-image`]: {\n      width: token.imageWidth,\n      height: token.imageHeight,\n      margin: 'auto'\n    },\n    [`${componentCls} ${componentCls}-icon`]: {\n      marginBottom: paddingLG,\n      textAlign: 'center',\n      [`& > ${iconCls}`]: {\n        fontSize: token.resultIconFontSize\n      }\n    },\n    [`${componentCls} ${componentCls}-title`]: {\n      color: token.colorTextHeading,\n      fontSize: token.resultTitleFontSize,\n      lineHeight: lineHeightHeading3,\n      marginBlock: marginXS,\n      textAlign: 'center'\n    },\n    [`${componentCls} ${componentCls}-subtitle`]: {\n      color: token.colorTextDescription,\n      fontSize: token.resultSubtitleFontSize,\n      lineHeight,\n      textAlign: 'center'\n    },\n    [`${componentCls} ${componentCls}-content`]: {\n      marginTop: paddingLG,\n      padding: `${paddingLG}px ${padding * 2.5}px`,\n      backgroundColor: token.colorFillAlter\n    },\n    [`${componentCls} ${componentCls}-extra`]: {\n      margin: token.resultExtraMargin,\n      textAlign: 'center',\n      '& > *': {\n        marginInlineEnd: paddingXS,\n        '&:last-child': {\n          marginInlineEnd: 0\n        }\n      }\n    }\n  };\n};\nconst genStatusIconStyle = token => {\n  const {\n    componentCls,\n    iconCls\n  } = token;\n  return {\n    [`${componentCls}-success ${componentCls}-icon > ${iconCls}`]: {\n      color: token.resultSuccessIconColor\n    },\n    [`${componentCls}-error ${componentCls}-icon > ${iconCls}`]: {\n      color: token.resultErrorIconColor\n    },\n    [`${componentCls}-info ${componentCls}-icon > ${iconCls}`]: {\n      color: token.resultInfoIconColor\n    },\n    [`${componentCls}-warning ${componentCls}-icon > ${iconCls}`]: {\n      color: token.resultWarningIconColor\n    }\n  };\n};\nconst genResultStyle = token => [genBaseStyle(token), genStatusIconStyle(token)];\n// ============================== Export ==============================\nconst getStyle = token => genResultStyle(token);\nexport default genComponentStyleHook('Result', token => {\n  const {\n    paddingLG,\n    fontSizeHeading3\n  } = token;\n  const resultSubtitleFontSize = token.fontSize;\n  const resultExtraMargin = `${paddingLG}px 0 0 0`;\n  const resultInfoIconColor = token.colorInfo;\n  const resultErrorIconColor = token.colorError;\n  const resultSuccessIconColor = token.colorSuccess;\n  const resultWarningIconColor = token.colorWarning;\n  const resultToken = mergeToken(token, {\n    resultTitleFontSize: fontSizeHeading3,\n    resultSubtitleFontSize,\n    resultIconFontSize: fontSizeHeading3 * 3,\n    resultExtraMargin,\n    resultInfoIconColor,\n    resultErrorIconColor,\n    resultSuccessIconColor,\n    resultWarningIconColor\n  });\n  return [getStyle(resultToken)];\n}, {\n  imageWidth: 250,\n  imageHeight: 295\n});"],"mappings":"AAAA,SAASA,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE;AACA,MAAMC,YAAY,GAAGC,KAAK,IAAI;EAC5B,MAAM;IACJC,YAAY;IACZC,kBAAkB;IAClBC,OAAO;IACPC,OAAO;IACPC,SAAS;IACTC,SAAS;IACTC,SAAS;IACTC,QAAQ;IACRC;EACF,CAAC,GAAGT,KAAK;EACT,OAAO;IACL;IACA,CAACC,YAAY,GAAG;MACdG,OAAO,EAAG,GAAEG,SAAS,GAAG,CAAE,MAAKF,SAAU,IAAG;MAC5C;MACA,OAAO,EAAE;QACPK,SAAS,EAAE;MACb;IACF,CAAC;IACD;IACA,CAAE,GAAET,YAAa,IAAGA,YAAa,QAAO,GAAG;MACzCU,KAAK,EAAEX,KAAK,CAACY,UAAU;MACvBC,MAAM,EAAEb,KAAK,CAACc,WAAW;MACzBC,MAAM,EAAE;IACV,CAAC;IACD,CAAE,GAAEd,YAAa,IAAGA,YAAa,OAAM,GAAG;MACxCe,YAAY,EAAET,SAAS;MACvBU,SAAS,EAAE,QAAQ;MACnB,CAAE,OAAMd,OAAQ,EAAC,GAAG;QAClBe,QAAQ,EAAElB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